﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jeopardy.Models
{
    class QuestionNode
    {
        //Properties of the questionNode.
        private string Question { get; set; }
        private string Answer { get; set; }
        private bool HasQuestion { get; set; }
        private bool HasAnswer { get; set; }

        /// <summary>
        /// Create a question node.
        /// </summary>
        /// <param name="question"></param>
        /// <param name="answer"></param>
        public QuestionNode(string question, string answer)
        {
            if (question != null && answer != null)
            {
                this.Question = question;
                this.Answer = answer;
                this.HasQuestion = true;
                this.HasAnswer = true;
            }
            else
            {
                this.Question = null;
                this.Answer = null;
                this.HasQuestion = false;
                this.HasAnswer = false;
            }
        }

        /// <summary>
        /// Default constructor.
        /// </summary>
        public QuestionNode()
        {
            //Empty for now.
        }
    }
}
